<?php
/**
 * Created by PhpStorm.
 * User: cephei
 * Date: 12/9/15
 * Time: 5:56 PM
 */
namespace Plugins\Log;

use Core\PluginContainer;

class Register_Log{
    public function register(){
        PluginContainer::getInstance()->bind('log',function(){
            return new Plugin_Log();
        });
    }
    public function install(\Closure $callback){
        $config = new \stdClass();
        $config->name = 'log';
        $config->class = 'Plugins\\Log\\Register_Log';
        $config->enable = 1;
        $callback($config);
    }
}